package com.jzg.jcptadmin.data.vo;

import android.os.Parcel;
import android.os.Parcelable;

import com.jzg.jcptadmin.base.BaseObject;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by wangyd on 16/1/7.
 * 估值历史列表实体
 */
public class HistoryList extends BaseObject implements Parcelable {
    private List<History> AppraiseList;

    public List<History> getAppraiseList() {
        return AppraiseList;
    }

    public void setAppraiseList(List<History> appraiseList) {
        AppraiseList = appraiseList;
    }

    @Override
    public String toString() {
        return "HistoryList{" +
                "AppraiseList=" + AppraiseList +
                '}';
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        super.writeToParcel(dest, flags);
        dest.writeList(this.AppraiseList);
    }

    public HistoryList() {
    }

    protected HistoryList(Parcel in) {
        super(in);
        this.AppraiseList = new ArrayList<History>();
        in.readList(this.AppraiseList, List.class.getClassLoader());
    }

    public static final Creator<HistoryList> CREATOR = new Creator<HistoryList>() {
        public HistoryList createFromParcel(Parcel source) {
            return new HistoryList(source);
        }

        public HistoryList[] newArray(int size) {
            return new HistoryList[size];
        }
    };
}
